package com.sanadc.shohdi.chapter2.override_object_method;



public class MailMessage implements Cloneable
{
	private String sender;
	private String recipient;
	private StringBuffer messageText;
	protected String getSender() {
		return sender;
	}
	protected void setSender(String sender) {
		this.sender = sender;
	}
	protected String getRecipient() {
		return recipient;
	}
	protected void setRecipient(String recipient) {
		this.recipient = recipient;
	}
	protected StringBuffer getMessageText() {
		return messageText;
	}
	protected void setMessageText(StringBuffer messageText) {
		this.messageText = messageText;
	}
	
	
	
	public MailMessage (String from,String to,String message)
	{
		sender = from;
		recipient = to;
		messageText = new StringBuffer(message);
	}
	
	
	public Object clone() throws CloneNotSupportedException
	{
		return super.clone();
	}
	
	
	
	
	
}